<template>
	<tm-fullView>
		<template v-slot:default="{info}">
			<view class="grey text " :class="$tm.vx.state().tmVuetify.black?'black bk':''" :style="{minHeight:info.height+'px'}">
				<tm-menubars title="上传图片组件" color="bg-gradient-blue-accent"  :showback="true"></tm-menubars>
				
				<tm-sheet :shadow="24">
					<view class="text-size-s text-weight-b mb-24 ">基本示例</view>
					<tm-upload :filelist.sync="filelist"></tm-upload>
				</tm-sheet>
				<tm-sheet :shadow="24" >
					<view class="text-size-s text-weight-b mb-24 ">随意更改行的个数</view>
					<tm-upload  :grid="3" :filelist.sync="filelist2"></tm-upload>
					<view class="text-size-s text-weight-b my-24 ">设置为只读</view>
					<tm-upload :disabled="true" :grid="4" :filelist.sync="filelist2"></tm-upload>
				</tm-sheet>
				<tm-sheet :shadow="24"  color="blue" classname="text-size-n">
					这是一个即简单又实用的上传组件，不用复杂的配置。当然也提供了高级玩法，适合高级玩家，自己开发上传组件。详见文档
				</tm-sheet>
				
				<view style="height: 50upx;"></view>
			</view>
		</template>
	</tm-fullView>

</template>

<script>
	import tmFullView from "@/tm-vuetify/components/tm-fullView/tm-fullView.vue"
	import tmMenubars from "@/tm-vuetify/components/tm-menubars/tm-menubars.vue"
	import tmSheet from "@/tm-vuetify/components/tm-sheet/tm-sheet.vue"
	import tmUpload from "@/tm-vuetify/components/tm-upload/tm-upload.vue"
	export default {
		components:{tmFullView,tmMenubars,tmSheet,tmUpload},
		data() {
			return {
				filelist:["https://picsum.photos/200?v=555","https://picsum.photos/200?v=555"],
				filelist2:[
					"https://picsum.photos/200?v=555",
					"https://picsum.photos/200?v=555",
					"https://picsum.photos/200?v=555",
					"https://picsum.photos/200?v=555",
					
					],
			}
		},
		methods: {
			
		}
	}
</script>

<style>

</style>
